package com.tidc.commonality.fallbackFactory;

import com.tidc.commonality.api.TeacherScoreApi;
import com.tidc.commonality.ov.UserOV;
import com.tidc.commonality.pojo.Score;
import feign.hystrix.FallbackFactory;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassNmae TeacherScoreFallbackFactory
 * @Description TODO
 * @Author 冯涛滔
 **/
public class TeacherScoreFallbackFactory implements FallbackFactory<TeacherScoreApi> {
	@Override
	public TeacherScoreApi create(Throwable throwable) {
		return new TeacherScoreApi() {
			@Override
			public UserOV postScore(String token, Score score) {
				return null;
			}

			@Override
			public UserOV getScore(String token, int id) {
				return null;
			}

			@Override
			public UserOV setScore(String token, Score score) {
				return null;
			}
		};
	}
}
